package com.qfedu.dao;


import com.qfedu.entity.Driverinfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DriverDao extends JpaRepository<Driverinfo,Long> {

    List<Driverinfo> findAllByState(String state);

    Driverinfo findById(String id);

    List<Driverinfo> findAll();

    Driverinfo save(Driverinfo driverinfo);

    Integer deleteById(String id);


}
